package com.product.business.domain;

import java.util.Date;

import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.product.common.annotation.Excel;
import com.product.common.core.domain.BaseEntity;

/**
 * 生产企业信息对象 enterprise_info
 *
 * @author wanghui
 * @date 2022-08-20
 */
public class EnterpriseInfo extends BaseEntity {
    private static final long serialVersionUID = 1L;

    /**
     * 企业id（主键自增）
     */
    private Long companyId;

    /**
     * 企业名称
     */
    @Excel(name = "企业名称")
    private String companyName;

    /**
     * 企业类型（关联字典）
     */
    @Excel(name = "企业类型", readConverterExp = "关=联字典")
    private String companyType;

    /**
     * 企业资格证书
     */
    @Excel(name = "企业资格证书")
    private String companyCertificate;

    /**
     * 企业资格证书到期时间
     */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "企业资格证书到期时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date expirationTime;

    /**
     * 企业地址
     */
    @Excel(name = "企业地址")
    private String companyLocation;

    /**
     * 企业负责人
     */
    @Excel(name = "企业负责人")
    private String companyLeader;

    /**
     * 负责人联系方式
     */
    @Excel(name = "负责人联系方式")
    private String leaderPhone;

    /**
     * 企业咨询电话
     */
    @Excel(name = "企业咨询电话")
    private String companyPhone;

    /**
     * 企业邮箱
     */
    @Excel(name = "企业邮箱")
    private String companyEmail;

    /**
     * 企业状态（关联字典）
     */
    @Excel(name = "企业状态", readConverterExp = "关=联字典")
    private String companyStatus;

    public void setCompanyId(Long companyId) {
        this.companyId = companyId;
    }

    public Long getCompanyId() {
        return companyId;
    }

    public void setCompanyName(String companyName) {
        this.companyName = companyName;
    }

    public String getCompanyName() {
        return companyName;
    }

    public void setCompanyType(String companyType) {
        this.companyType = companyType;
    }

    public String getCompanyType() {
        return companyType;
    }

    public void setCompanyCertificate(String companyCertificate) {
        this.companyCertificate = companyCertificate;
    }

    public String getCompanyCertificate() {
        return companyCertificate;
    }

    public void setExpirationTime(Date expirationTime) {
        this.expirationTime = expirationTime;
    }

    public Date getExpirationTime() {
        return expirationTime;
    }

    public void setCompanyLocation(String companyLocation) {
        this.companyLocation = companyLocation;
    }

    public String getCompanyLocation() {
        return companyLocation;
    }

    public void setCompanyLeader(String companyLeader) {
        this.companyLeader = companyLeader;
    }

    public String getCompanyLeader() {
        return companyLeader;
    }

    public void setLeaderPhone(String leaderPhone) {
        this.leaderPhone = leaderPhone;
    }

    public String getLeaderPhone() {
        return leaderPhone;
    }

    public void setCompanyPhone(String companyPhone) {
        this.companyPhone = companyPhone;
    }

    public String getCompanyPhone() {
        return companyPhone;
    }

    public void setCompanyEmail(String companyEmail) {
        this.companyEmail = companyEmail;
    }

    public String getCompanyEmail() {
        return companyEmail;
    }

    public void setCompanyStatus(String companyStatus) {
        this.companyStatus = companyStatus;
    }

    public String getCompanyStatus() {
        return companyStatus;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this, ToStringStyle.MULTI_LINE_STYLE)
                .append("companyId", getCompanyId())
                .append("companyName", getCompanyName())
                .append("companyType", getCompanyType())
                .append("companyCertificate", getCompanyCertificate())
                .append("expirationTime", getExpirationTime())
                .append("companyLocation", getCompanyLocation())
                .append("companyLeader", getCompanyLeader())
                .append("leaderPhone", getLeaderPhone())
                .append("companyPhone", getCompanyPhone())
                .append("companyEmail", getCompanyEmail())
                .append("companyStatus", getCompanyStatus())
                .append("createBy", getCreateBy())
                .append("createTime", getCreateTime())
                .append("updateBy", getUpdateBy())
                .append("updateTime", getUpdateTime())
                .append("remark", getRemark())
                .toString();
    }
}
